<%@tag import="java.sql.SQLException"%>
<%@tag import="java.sql.DriverManager"%>
<%@tag import="java.sql.Connection"%>

<%
    Connection con = (Connection) request.getSession().getAttribute("currentConnection");
    if (con != null) {
        if (!con.isClosed()) {
            con.close();
        }
        request.getSession().removeAttribute("currentConnection");

    }
%>